$def with(user, own_acts, wish_acts, do_acts, own_size, wish_size, do_size, threads, th_size, username)
$var title: $context.user
$var gmap: 0


<div class="left_side">
    <h2> $username发起的活动 (共$own_size个)</h2>
    <ul>
        $for act in own_acts:
            <li class="act"><a href="/activity?aid=$act['id']"> $act['subject']</a> 在 $act['gatherlocation'] 于 $act['gathertime'] 进行</li>
        $if own_size > 5:
            <a style="float: right" href="acts?uid=$user['id']&act=own">更多</a>
    </ul>
    <h2> $username参加的活动 (共$do_size个)</h2>
    <ul>
        $for act in do_acts:
            <li class="act"><a href="/activity?aid=$act['id']"> $act['subject']</a> 在 $act['gatherlocation'] 于 $act['gathertime'] 进行</li>
        $if do_size > 5:
            <a style="float: right" href="acts?uid=$user['id']&act=do">更多</a>
    </ul>
    <h2> $username感兴趣的活动 (共$wish_size个)</h2>
    <ul>
        $for act in wish_acts:
            <li class="act"><a href="/activity?aid=$act['id']"> $act['subject']</a> 在 $act['gatherlocation'] 于 $act['gathertime'] 进行</li>
        $if wish_size > 5:
            <a style="float: right" href="acts?uid=$user['id']&act=wish">更多</a>
    </ul>
    <h2> $username发起的话题 </h2>
    <div class="indent">
        <table class="olt">
            <tbody>
                <tr>
                    <td width="42%"></td>
                    <td width="22%"></td>
                    <td width="12%"></td>
                    <td width="24%"></td>
                </tr>
                $for i in threads:
                    <tr>
                        <td> 
                            <a href="/discuss_show?tid=$i['id']&aid=$i['aid']"> $i['subject'] </a>
                        </td>
                        <td class="pl">
                            来自<a href="/profile?uid=$i['uid']">$i['owner']</a>
                        </td>
                        <td class="pl">
                            $i['reply'] 跟贴
                        </td>
                        <td class="pl">
                            $i['atime'] 
                        </td>
                    </tr>
            </tbody>
        </table>
    </div>
        $if th_size > 5:
            <a style="float: right" href="acts?uid=$user['id']&act=wish">更多</a>
        
</div>
<div class="right_side">
    <div id="profile">
        <div class="infobox">
            <img class="userface" alt="$user['nickname']" src="$user['avatar']"/>
            <div class="userinfo">
                $user['nickname'] <br>
                居住： $user['location'] <br>
                性别：
                $if user['gender'] == 0: 女
                      $elif user['gender'] == 1: 男
                      $else: 外星人
                      <br>
            </div>
        <div class="clear"></div>
        </div>

    </div>
</div>

